<?
class HtmlEmailer extends emailer
{
   public function sendHTMLEmail()
   {
         foreach ($this->recipients as $recipient)
         {
            $headers  = 'MIME-Version: 1.0' . "\r\n";
            $headers .= 'Content-type: text/html; charset=iso-8859-2' .
               "\r\n";
            $headers .= 'From: {$this->sender}' . "\r\n";
            $result = mail($recipient, $this->subject, $this->body,
               $headers);
            if ($result) echo "Wiadomo w formacie HTML zostaa wysana do
               {$recipient}<br/>";
      }
   }
}
?>
